package com.chixing.service;

import com.chixing.entity.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chixing.util.Result;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author shy
 * @since 2022-10-20
 */
public interface IOrdersService extends IService<Orders> {
    //创建订单功能
    Result createOrder(Orders orders);

    //根据订单id查询订单
    Result getById(Integer orderId);

    //常看订单列表
    Result getOrderAll();

    //订单修改
    Result updateOrderStatus(Orders orders,Integer orderStatusId);

    //订单取消
    Result deleteOrderById(Integer orderId);

    //订单状态

    //订单评价

    // 查询订单根据用户id
    Result getOrdersByCustomerId(Integer customerId);
    Result getOrdersByCustomerIdAndStatus(Integer customerId,int status);
    Result getOrderByOrderNum(String orderNum);


}
